package cn.wdm.org.mapper;

import cn.wdm.org.domain.Shop;
import cn.wdm.basic.mapper.BaseMapper;
import cn.wdm.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author laozhang
 * @since 2022-06-12
 */
public interface ShopMapper extends BaseMapper<Shop> {
    /**
     * 根据店铺名字查找店铺
     * @param name
     * @return
     */
    Shop loadShopByName(String name);

    /**
     * 批量新增
     * @param shops
     */
    void saveBatchShop(List<Shop> shops);

    /**
     * 获取echarts数据
     * @return
     */
    List<ShopVo> loadEcharts();
}
